From 8adfc326f8f0daf307f7f55c3b4834c57068f84a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 19 Jul 2010 13:15:10 +0200 Subject: [PATCH] x11: Query size on real drawable The X11 drawable does not have a clue about the real size of the surface. This might also be the cause for: https://bugzilla.gnome.org/show_bug.cgi?id=599574 --- gdk/x11/gdkdrawable-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c index 68379bf7d2..e48d8df286 100644 --- a/gdk/x11/gdkdrawable-x11.c +++ b/gdk/x11/gdkdrawable-x11.c @@ -1463,7 +1463,7 @@ gdk_x11_ref_cairo_surface (GdkDrawable *drawable) { int width, height; - gdk_drawable_get_size (drawable, &width, &height); + gdk_drawable_get_size (impl->wrapper, &width, &height); impl->cairo_surface = _gdk_windowing_create_cairo_surface (drawable, width, height); -- 2.30.2